package cn.edu.cqytxy.demo1;

/**
 * 生产者
 *
 * @author yinjw
 */
public class Producer implements Runnable{

    private Car car;

    public Producer(Car car) {
        this.car = car;
    }

    @Override
    public void run() {
        car.add();
    }
}
